{include file="index/head" /}
<form method="get" action="" id="listform">
  <div class="box">
    <div class="box-head">
      <ul class="search">
				<li><a href="{:url('tagadd')}" class="btn"><i class="icon-plus-square-o"></i>添加标签</a><li>
				<li><a href="{:url('tagseo')}" class="btn"><i class="icon-edit"></i>TAG主页SEO</a></li>
        <li><span>搜索：</span></li>
        <li>
         <input type="text" class="intxt" placeholder="请输入搜索关键字" name="tag">
        </li>
        <li>
					<button type="button" class="btn" onclick="sycms.search('{:url('taglist')}')"><i class="icon-search"></i> 搜索</button> 
				</li>
      </ul>
      <a href="javascript:history.go(0);" class="btn fr"><i class="icon-refresh"></i> 刷新</a> </div>
    <table class="table">
      <tr>
        <th>ID</th>
        <th>标签</th>
				<th>点击量</th>
        <th>文档数</th>
        <th width="150">日期</th>
        <th width="250">操作</th>
      </tr>
      {volist name="list" id="vo"}
      <tr>
        <td>{$vo.id}</td>
        <td><a href="/tag/{$vo.id}.html" target="_blank">{$vo.tag}</a></td>
        <td>{$vo.views}</td>
        <td>{php}echo db('tagnidaid')->where(['tid'=>$vo['id']])->count();{/php}</td>
        <td>{$vo.datetime|date='Y-m-d H:i:s',###}</td>  
				<td>
					<a href="{:url('tagadd',['id'=>$vo.id])}" class="btn"><i class="icon-edit"></i> 编辑</a> 
					<a href="{:url('taggl',['tid'=>$vo.id])}" class="btn"><i class="icon-edit"></i> 关联</a> 
					<a href="javascript:void(0);" onclick="sycms.del('{:url('delTag',['id'=>$vo.id])}')" class="btn red"><i class="icon-trash-o"></i> 删除</a>
				</td>
      </tr>
      {/volist}
      <tr>
        <td colspan="6"><div class="page">{$page}</div></td>
      </tr>
    </table>
  </div>
</form>
